/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package listener;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import org.apache.log4j.Logger;

/**
 *
 * @author Christophe
 */
public class UniscolApplicationContextListener implements ServletContextListener {

    private static Logger log = Logger.getLogger(UniscolApplicationContextListener.class);
    
    @Override
    public void contextInitialized(ServletContextEvent sce) {
        log.warn("Chargement de l'application terminé.");
        
        System.out.println("--------------------------------------------------------------------");
        System.out.println("-                                                                  -");
        System.out.println("-                        UNISCOL (v1.0.0)                          -");
        System.out.println("-                                                                  -");
        System.out.println("--------------------------------------------------------------------");
    }

    @Override
    public void contextDestroyed(ServletContextEvent sce) {
        log.warn("Retrait de l'application terminé");
    }
}
